package com.it.taoyidian.entity;

public enum ResultEnum {
    SUCCESS(200,"成功"),
    FAIL(500,"失败"),
    LOGIN_PHONE_ERROR(5001,"手机号错误"),
    LOGIN_PWD_ERROR(5002,"密码错误"),
    LOGIN_PHONE_PWD_ERROR(5003,"手机号或者密码错误"),
    DELETE_FOODTYPE_FOOD(5005,"请先删除该类型下的菜品后再删除类型"),
    File_FAIL(5006,"图片上传失败"),
    LOGIN_PWD_ERROR_COUNT(5004,"密码错误次数超过3次，账户锁定15分钟");
    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
